import request from '@/utils/request'

// 查询存储支出申请的列表
export function listExpenseRequest(query) {
  return request({
    url: '/money/expenseRequest/list',
    method: 'get',
    params: query
  })
}

// 查询存储支出申请的详细
export function getExpenseRequest(id) {
  return request({
    url: '/money/expenseRequest/' + id,
    method: 'get'
  })
}
//支出申请审核通过
export function passExpenseRequest(id) {
  return request({
    url: '/money/expenseRequest/pass/' + id,
    method: 'put'
  })
}
//支出申请审核不通过
export function rejectExpenseRequest(id) {
  return request({
    url: '/money/expenseRequest/reject/' + id,
    method: 'put'
  })
}

// 新增存储支出申请的
export function addExpenseRequest(data) {
  return request({
    url: '/money/expenseRequest',
    method: 'post',
    data: data
  })
}

// 修改存储支出申请的
export function updateExpenseRequest(data) {
  return request({
    url: '/money/expenseRequest',
    method: 'put',
    data: data
  })
}

// 删除存储支出申请的
export function delExpenseRequest(id) {
  return request({
    url: '/money/expenseRequest/' + id,
    method: 'delete'
  })
}
